package com.jcsz.gulimall.cart.service;

import com.jcsz.gulimall.cart.vo.Cart;
import com.jcsz.gulimall.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @className: CartService
 * @author: 一把Po吉他
 * @date: 2022/11/10 12:04
 * @version: 1.0
 **/
public interface CartService {
    Cart getCart() throws ExecutionException, InterruptedException;

    void addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItem getCartItem(Long skuId);

    void checkItem(Long skuId, Integer checked);

    void countItem(Long skuId, Integer num);

    void deleteItem(Long skuId);

    List<CartItem> getCurrentUserCartItem();
}
